KlarityJS

object KlarityJS

Functions

Link copied to clipboard
fun configure(json: Json)

Configures Klarity

Link copied to clipboard

Registers a middleware to the list of middlewares.

Link copied to clipboard
fun registerSource(languageCode: String, translationSource: TranslationSource)

Registers a translation source for a language code.

Link copied to clipboard
fun translate(key: String, defaultValue: String? = null, values: Any? = null, language: String = KlarityAPI.config.defaultLanguage): String